package cn.zymall.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "spu_recommended")
public class SpuRecommended extends BaseEntity implements Serializable {
    /**
     * 推荐id
     */
    @TableId(value = "SPU_RECOMMENDED_ID", type = IdType.AUTO)
    private Integer spuRecommendedId;

    /**
     * 推荐商品id
     */
    @TableField(value = "SPU_ID")
    private Integer spuId;

    /**
     * 店铺id
     */
    @TableField(value = "STORE_ID")
    private Integer storeId;

    /**
     * 创建时间
     */
    @TableField(value = "CREATIONTIME")
    private Date creationtime;

    /**
     * 状态（0使用，1.停用 2.删除）
     */
    @TableField(value = "SPU_RECOMMENDED_STATUS")
    private Integer spuRecommendedStatus;

    /**
     * 创建人
     */
    @TableField(value = "CREATE_BY")
    private Integer createBy;

    /**
     * 更新人
     */
    @TableField(value = "UPDATE_BY")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_SPU_RECOMMENDED_ID = "SPU_RECOMMENDED_ID";

    public static final String COL_SPU_ID = "SPU_ID";

    public static final String COL_STORE_ID = "STORE_ID";

    public static final String COL_CREATIONTIME = "CREATIONTIME";

    public static final String COL_SPU_RECOMMENDED_STATUS = "SPU_RECOMMENDED_STATUS";

    public static final String COL_CREATE_BY = "CREATE_BY";

    public static final String COL_UPDATE_BY = "UPDATE_BY";

    public static final String COL_UPDATE_TIME = "UPDATE_TIME";
}